package org.generic;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

import org.generic.splash.Splash;

public class TestMidlet extends MIDlet {

	public static AppCanvas appCanvas;
	public static Splash splash;
	
	public static int SPLASH_TIME 		= 4000;
	public static String SPLASH_PATH 	= "/splash_240x320.png";
	
	protected void destroyApp(boolean unconditional) throws MIDletStateChangeException {
		super.notifyDestroyed();
	}

	protected void pauseApp() {
	}

	protected void startApp() throws MIDletStateChangeException {
		appCanvas = AppCanvas.getAppCanvas(this);
		splash = new Splash(SPLASH_PATH, 0xFFFFFF);
		splash.show(this, appCanvas, SPLASH_TIME);
	}

}
